package com.example.demo.service;


import com.example.demo.DTO.userDTO;
import com.example.demo.dao.user;

import java.util.List;

public interface userService {

    userDTO getUserById(long id);//根据id查询用户信息

    user addNewUser(userDTO userDTO);

    void deleteUserById(long id);

    user updateStateById(long id);//更新用户名

    userDTO updateUserEmailById(long id, String email);//更新邮箱

    user getUserByNameAndPass(String name, String pass);

    user getUserByName(String name);

    List<user> getUserByState(String userState);

    user updateMoneyByName(String name, int money);
}
